<!--
+----------------------------------------------------------------------
| 友得云客  - 开启房产营销新纪元
+----------------------------------------------------------------------
| Copyright (c) 2019~2023 优得（西安）信息科技有限公司版权所有
+----------------------------------------------------------------------
| Licensed 友得云客不是自由软件 未经允许不可移除相关版权
+----------------------------------------------------------------------
| Author: www.youdeyunke.com
+----------------------------------------------------------------------
-->
<template>
    <div class="banners-container" v-cloak>
      <div class="container">
        <div class="top-container">
            <div class="item">
                <div class="item-info">
                    <div class="item-date">3.26</div>
                    <div class="item-title">一手</div>
                    <div class="item-title">成交量</div>
                </div>
                <div class="item-count" :style="{ background: module.data.leftColor }">336套</div>
            </div>
            <div class="item">
                <div class="item-info">
                    <div class="item-date">3.26</div>
                    <div class="item-title">二手</div>
                    <div class="item-title">成交量</div>
                </div>
                <div class="item-count" :style="{ background: module.data.rightColor }">336套</div>
            </div>
        </div>


        <div class="tip">{{ tipText }}</div>

        <div class="button" :style="{ background: bgcolor}">网签统计</div>
    </div>

    </div>
  </template>
  
  <script>
  export default {
    components: {
    },
    data() {
      return {
        loading: false,
      };
    },
    props: {
      module: { type: Object },
    },
  
    watch: {},
  
    mounted: function () {},
  
    computed: {
      borderRadiusValue: function () {
        var r = this.module.radius;
        if (!r) {
          return "0px";
        }
        return r.value + "px";
      },
  
      isEmpty: function () {
        return this.module.url.length == 0;
      },
      bgcolor(){
        return this.$store.state.myconfig.color.primary || '#1989fa'
      },
      tipText(){
        return this.module.data.tipText
      }
    },
  
    methods: {},
  };
  </script>
  
  <style scoped>
  .banners-container {
    height: 100%;
    margin: 0px auto;
    position: relative;
  }
  
  .container {
    width: 100%;
    padding: 20px;
}

.top-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 48%;
    padding: 20px 30px;
    box-shadow: 0 0 10px #cfcfcf;
    border-radius: 20px;
}

.item-info {
    font-size: 24px;
}

.item-date {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 5px;
}

.item-title {
    /* margin-top: 5px; */
}

.item-count {
    background-color: #d63b0f;
    width: 55%;
    height: 120px;
    line-height: 120px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    border-radius: 20px;
}


.tip {
    font-size: 20px;
    color: #787878;
    margin: 20px auto;
}

.button {
    background-color: #fdece5;
    color: #fff;
    height: 90px;
    text-align: center;
    line-height: 90px;
    border-radius: 10px;
    margin-top: 30px;
}
  </style>
  